use criterion::{black_box, criterion_group, criterion_main, Criterion};
use hash_pointer::hash_pointer;

fn bench_hash_pointer_pointer_hash(c: &mut Criterion) {
    let data = vec![1, 2, 3, 4, 5];
    let ptr = data.as_ptr();

    c.bench_function("hash_pointer_pointer_hash", |b| {
        b.iter(|| hash_pointer::pointer_hash(black_box(ptr)))
    });
}

criterion_group!(benches, bench_hash_pointer_pointer_hash);
criterion_main!(benches);